package com.markerhub.exception.apiException.authenticationException;

import com.markerhub.constant.ApiExceptionCodes;
import com.markerhub.exception.apiException.AuthenticationException;

/**
 * 无权限异常
 *
 * @author Ma Xiaofeng
 * @date : Created in 2021/11/15
 **/
public class PermissionDeniedException extends AuthenticationException {
    public PermissionDeniedException() {
        super(ApiExceptionCodes.PERMISSION_DENIED.getValue(),ApiExceptionCodes.PERMISSION_DENIED.getDesc());
    }

    public PermissionDeniedException(String message) {
        super(ApiExceptionCodes.PERMISSION_DENIED.getValue(),message);
    }
}
